<@head title="文件上传-vmvm资源分享网站">
</@head>
<@body>

<form class="was-validated"  method="post" action="/upload" enctype="multipart/form-data">
  <div class="custom-control custom-checkbox mb-3">
    <input type="checkbox" name="protocol" class="custom-control-input" id="customControlValidation1" value="1" required checked>
    <label class="custom-control-label" for="customControlValidation1">遵守上传协议规定</label>
    <div class="invalid-feedback">必须同意网址上传规定</div>
  </div>

  <div class="custom-control custom-radio">
    <input type="radio"  class="custom-control-input" id="customControlValidation2" name="radio_level" value="0"  required checked>
    <label class="custom-control-label" for="customControlValidation2">公开分享给大家观看</label>
  </div>
  <div class="custom-control custom-radio mb-3">
    <input type="radio" class="custom-control-input" id="customControlValidation3" name="radio_level" value="1" required>
    <label class="custom-control-label" for="customControlValidation3">不公开，自己独享</label>
    <div class="invalid-feedback">More example invalid feedback text</div>
  </div>
<!--
  <div class="form-group">
    <select class="custom-select" required>
      <option value="">Open this select menu</option>
      <option value="1">One</option>
      <option value="2">Two</option>
      <option value="3">Three</option>
    </select>
    <div class="invalid-feedback">Example invalid custom select feedback</div>
  </div>
-->

  <div class="form-group mb-3">
    <input type="file" name="file"  multiple="multiple"  class="form-control-file" id="validatedCustomFile" required>


    <div class="invalid-feedback">只能上传图片或是短视频文件,支持批量上传</div>
  </div>

   <div class="form-group mb-3">
        <label for="inputPassword">验证码:</label>
        <input type="number" name="captcha" id="captcha" class="form-control" placeholder="" required autocomplete="off">
<img id="captchaimg"  src="/captcha"/>
      </div>

  <div class="form-group mb-3">
        <button class="btn btn-lg btn-primary " type="submit"> 提交 </button>
      <a class="btn btn-lg btn-primary " href="/"  > 返回首页 </a>
    </div>

</form>




</@body>
<@js>

$("#captchaimg").click(function(){
  $("#captchaimg").attr("src","/captcha?"+Math.random());
  $("#captcha").val("");
});
</@js>









